package com.example.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.NonNull;
import com.example.constant.GoodsState;

import java.time.LocalDateTime;

@Data
public class Goods {
    @NonNull
    private Integer id;//主键ID
    @NotNull
    private String name;
    @NotNull
    private Integer cateId;
    @NotNull
    private String cateName;
    @NotNull
    private Integer stuId;
    @NotNull
    private String stuName;
    @NotNull
    private Float price;
    @NotNull
    private String state ;// 使用枚举值
    private String description;
    private String goodsPic;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;//创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;//更新时间
}
